/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sample.struts2;

import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;

/**
 *
 * @author Thai Ha Cong
 */
public class User {
    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    @RequiredStringValidator(message="Username is required")
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    @RequiredStringValidator(message="Password is required")
    public void setPassword(String password) {
        this.password = password;
    }
}
